<template>
  <!-- 小店详情-达人分析 159/166 -->
  <div class="TalentAnalysisShop">
    <div class="vip_pay_box" v-if="!vipRootObj[159][166].owner">
      <div class="vip_bg_box">
        <div class="vip_bg_mask"></div>
      </div>
      <div class="vip_box_wrap">
        <payVip routerName="FansPortrait" :lowestVipNum="vipRootObj[159][166].ownerMinLevel" />
      </div>
    </div>
    <template v-else>
      <div class="top">
        <radio_group01 :radio_values="['近7天', '30天', '90天']" v-model="KindName" class="tab01" />
        <div class="optionsBox">
          <el-date-picker
            class="long_time"
            v-model="liveTime"
            type="daterange"
            range-separator="至"
            start-placeholder="开始时间"
            end-placeholder="结束时间"
            prefix-icon="el-icon-arrow-down"
            unlink-panels
            :clearable="false"
            :picker-options="pickeroptions"
            value-format="yyyy-MM-dd"
            @change="onPick1"
          ></el-date-picker>
        </div>
      </div>
      <!-- 销售达人Top -->
      <div class="talentTopWarp">
        <p class="title">销售达人Top</p>
        <div class="talentTop" v-if="totalSalesList.length ||liveSalesList.length">
          <div class="common talentTopLeft">
            <p class="contentTitle">总销售达人TOP3</p>
            <ul class="topList">
              <li class="list" v-for="item,index in totalSalesList" :key="index">
                <img :src="imgList[index].src" alt />
                <img class="image" :src="item.logo" v-errorImg:talent />
                <span class="text">{{item.nickName}}</span>
                <div class="acount">{{item.amount}}</div>
              </li>
            </ul>
          </div>
          <div class="common talentTopRight">
            <p class="contentTitle">直播销售达人TOP3</p>
            <ul class="topList">
              <li class="list" v-for="item,index in liveSalesList" :key="index">
                <img :src="imgList[index].src" alt />
                <img class="image" :src="item.logo" v-errorImg:talent alt />
                <span class="text">{{item.nickName}}</span>
                <span class="acount">{{item.amount}}</span>
              </li>
            </ul>
          </div>
        </div>
        <!-- loading -->
        <div
          v-loading="saleLoading"
          v-if="saleLoading"
          class="loading"
          element-loading-text="拼命加载中..."
          element-loading-spinner="el-icon-loading"
        ></div>
        <!-- 缺省图 -->
        <div class="zw" v-if="!totalSalesList.length && !liveSalesList.length && !saleLoading">
          <img src="@/assets/liu/zw.png" />
          <p>暂无数据</p>
        </div>
      </div>
      <!-- 销售达人Top end -->
      <p class="title">达人列表</p>
      <template>
        <dl class="dl">
          <dt>达人行业</dt>
          <dd
            ref="ovBox"
            :class="[{ overstep: isOverstep }, { is_unfold: isUnfold }]"
            v-if="categoryList.length>=2"
          >
            <div class="cg_items" ref="ovChild">
              <span
                v-for="(item, idx) in categoryList"
                :key="idx + 'cdi'"
                :class="{ active: item.name == isActive }"
                @click="getCondition(item)"
              >{{ item.name }}</span>
              <i @click="unfoldFn">{{ isUnfold ? "收起" : "展开" }}</i>
            </div>
          </dd>
        </dl>
        <dl>
          <!-- <dt>粉丝数</dt> -->
          <dd>
            <div class="cg_items">
              <radio_group
                :radio_values="[
                  '全部',
                  '<1w',
                  '1w-10w',
                  '10w-50w',
                  '50w-100w',
                  '100w-500w',
                  '500w-1000w',
                  '>1000w'
                ]"
                v-model="my_radio02"
                title="粉丝数"
                isSearch="1"
              />
            </div>
          </dd>
        </dl>
        <dd>
          <div class="cg_items cg_items1">
            <radio_group
              :radio_values="['全部', '高', '中', '低', '无']"
              v-model="my_radio01"
              title="口碑等级"
              isSearch="1"
            />
          </div>
        </dd>
        <div class="searchBox">
          <el-input
            type="text"
            v-model.trim="keyWords"
            @keyup.enter.native="toSearch"
            placeholder="请输入达人名称关键词搜索"
          ></el-input>
          <div class="imgBox" @click="toSearch">
            <!-- <img src="@/assets/wang/talentCompare/search.png" /> -->
          </div>
        </div>
        <div class="tab_box">
          <table class="tab1">
            <thead>
              <tr>
                <th>达人</th>
                <th>行业</th>
                <th>口碑</th>
                <!-- <th>近30天电商开播频次</th> -->
                <th>商品数</th>
                <th>关联视频</th>
                <!-- <th @click="sort_fun(false, 3)" v-if="orderBy == 'desc' && sort == 3">
              关联视频
              <img
                src="@/assets/meng/down_up.png"
                v-if="orderBy == 'desc' && sort == 3"
                class="sort"
              />
              <img src="@/assets/meng/no_down_up.png" v-else />
            </th>
            <th v-else @click="sort_fun(true, 3)">
              关联视频
              <img src="@/assets/meng/up_down.png" v-if="orderBy == 'asc' && sort == 3" />
              <img src="@/assets/meng/no_down_up.png" v-else />
                </th>-->
                <th>关联直播</th>
                <!-- <th @click="sort_fun(false, 5)" v-if="orderBy == 'desc' && sort == 5">
              销量
              <img
                src="@/assets/meng/down_up.png"
                v-if="orderBy == 'desc' && sort == 5"
                class="sort"
              />
              <img src="@/assets/meng/no_down_up.png" v-else />
            </th>
            <th v-else @click="sort_fun(true, 5)">
              销量
              <img src="@/assets/meng/up_down.png" v-if="orderBy == 'asc' && sort == 5" />
              <img src="@/assets/meng/no_down_up.png" v-else />
            </th>
            <th @click="sort_fun(false, 6)" v-if="orderBy == 'desc' && sort ==6">
              销售额
              <img
                src="@/assets/meng/down_up.png"
                v-if="orderBy == 'desc' && sort == 6"
                class="sort"
              />
              <img src="@/assets/meng/no_down_up.png" v-else />
            </th>
            <th v-else @click="sort_fun(true, 6)">
              销售额
              <img src="@/assets/meng/up_down.png" v-if="orderBy == 'asc' && sort == 6" />
              <img src="@/assets/meng/no_down_up.png" v-else />
                </th>-->
              </tr>
            </thead>
            <tbody>
              <tr v-for="item,i in infoData" :key="i+'d'">
                <td>
                  <div>
                    <img @click="go_to_au(item.authorId)" :src="item.logo" v-errorImg:talent alt />
                  </div>
                  <div @click="go_to_au(item.authorId)">
                    <p>{{item.nickName}}</p>
                  </div>
                </td>
                <td>{{item.category}}</td>
                <td v-if="item.publicPraise">{{item.publicPraise}}</td>
                <td v-if="!item.publicPraise">--</td>
                <!-- <td>{{item.liveFrequency}}</td> -->
                <td>
                  {{format_num(item.proCount)}}
                  <img
                    @click="shopPop(item.authorId)"
                    class="liveImg"
                    src="../../../assets/liu/shop.png"
                    alt
                  />
                </td>
                <td>{{format_num(item.awemeCount)}}</td>
                <td>
                  {{format_num(item.roomCount)}}
                  <img
                    @click="livepop(item.authorId)"
                    class="liveImg"
                    src="../../../assets/shi/live.png"
                    alt
                  />
                </td>
                <!-- <td>{{format_num(121119.8)}}</td>
                <td>{{format_num(11521119.8)}}</td>-->
              </tr>
            </tbody>
          </table>
          <div
            v-loading="loading"
            v-if="loading"
            class="loading"
            element-loading-text="拼命加载中..."
            element-loading-spinner="el-icon-loading"
          ></div>
          <div class="pageBox" v-if="totalCount>9&&!loading">
            <el-pagination
              background
              layout="prev, pager, next, jumper"
              :total="totalCount"
              :page-size="size"
              :current-page="page"
              @current-change="changePage"
              :hide-on-single-page="true"
            ></el-pagination>
            <!-- :hide-on-single-page="true" -->
          </div>
          <div class="zw" v-if="!infoData.length&&!loading">
            <img src="@/assets/liu/zw.png" />
            <p>暂无数据</p>
          </div>
        </div>
      </template>
      <!-- <div
        v-loading="loading"
        v-if="!categoryList.length"
        class="loading"
        element-loading-text="拼命加载中..."
        element-loading-spinner="el-icon-loading"
      ></div>
      <div class="zw" v-if="categoryList.length<2&&!loading">
        <img src="@/assets/liu/zw.png" />
        <p>暂无数据</p>
      </div>-->
      <el-dialog :visible.sync="isShopPop" width="790px" top="22.5vh" class="dialogLoginBox">
        <div class="popup_wrap">
          <div class="popup_wrap-title">
            <div class="title">仅显示该达人关联商品的销售数据</div>
          </div>
          <div
            v-loading="loading1"
            customClass="buyDialog"
            class="buyDialog"
            element-loading-text="拼命加载中..."
            element-loading-spinner="el-icon-loading"
          >
            <table class="tab2">
              <thead>
                <tr>
                  <th>商品</th>
                  <th>售价</th>
                  <th>佣金率</th>
                  <th>
                    销量
                    <el-tooltip
                      class="item"
                      effect="light"
                      placement="bottom"
                      popper-class="mytooltip"
                    >
                      <div slot="content">
                        <p>该销量为该达人关联商品直播销量</p>
                      </div>
                      <div class="whatTipBox"></div>
                    </el-tooltip>
                  </th>
                  <th>
                    销售额
                    <el-tooltip
                      class="item"
                      effect="light"
                      placement="bottom"
                      popper-class="mytooltip"
                    >
                      <div slot="content">
                        <p>该销售额为该达人关联商品直播销售额</p>
                      </div>
                      <div class="whatTipBox"></div>
                    </el-tooltip>
                  </th>
                </tr>
              </thead>
              <tbody>
                <tr v-for="item,i in shopPopList" :key="i+'qq'">
                  <td>
                    <div>
                      <img
                        @click="toGoodsDetails(item.proId, '0')"
                        :src="item.proLogo"
                        alt
                        v-errorImg:shop
                      />
                    </div>
                    <div class="tit_box" @click="toGoodsDetails(item.proId, '0')">
                      <SourceIcon :sourceid="item.proFrom" />
                      <p>{{item.proTitle}}</p>
                    </div>
                  </td>
                  <td>{{item.price}}</td>
                  <td
                    v-if="item.commissionRate<1"
                  >{{item.commissionRate?(item.commissionRate*100).toFixed(1)+'%':'--'}}</td>
                  <td v-if="item.commissionRate>1">--</td>

                  <td>{{item.volume}}</td>
                  <td>{{item.amount}}</td>
                </tr>
              </tbody>
            </table>

            <div class="pageBox" v-if="shopPopCount>5&&!loading1&&shopPopList.length">
              <el-pagination
                background
                layout="prev, pager, next, jumper"
                :total="shopPopCount"
                :page-size="size1"
                :current-page="page1"
                @current-change="changePage1"
                :hide-on-single-page="true"
              ></el-pagination>
            </div>
            <!-- :hide-on-single-page="true" -->
          </div>
          <div class="zw" v-if="!shopPopList.length&&!loading1">
            <img src="@/assets/liu/zw.png" />
            <p>暂无数据</p>
          </div>
        </div>
      </el-dialog>
      <el-dialog :visible.sync="isLivePop" width="790px" top="22.5vh" class="dialogLoginBox">
        <div class="popup_wrap">
          <div class="popup_wrap-title">
            <div class="title">仅显示该商品在关联直播间的销售数据</div>
          </div>
          <!-- class="loading" -->
          <div
            v-loading="loadingLive"
            customClass="buyDialog"
            class="buyDialog"
            element-loading-text="拼命加载中..."
            element-loading-spinner="el-icon-loading"
          >
            <table class="tab3">
              <thead>
                <tr>
                  <th>直播间</th>
                  <th>预估销量</th>
                  <th>预估销售额</th>
                  <th>平均在线人数</th>
                </tr>
              </thead>
              <tbody>
                <tr v-for="item,i in livelist" :key="i+i">
                  <td>
                    <div @click="go_to_page01(item.roomId)">
                      <img :src="item.roomLogo" alt />
                      <div class="livingGifBox" v-if="item.status==1">
                        <p class="livingGif">
                          <span></span>
                          <span></span>
                          <span></span>
                          <span></span>
                        </p>
                      </div>
                    </div>
                    <div>
                      <p @click="go_to_page01(item.roomId)">{{item.roomTitle}}</p>
                      <p>{{item.beginTime.substring(-3,16)}}</p>
                    </div>
                  </td>
                  <td>{{item.livevolume}}</td>
                  <td>{{item.livesales}}</td>
                  <td>{{item.avgOnlinePeople}}</td>
                </tr>
              </tbody>
            </table>
            <div class="zw" v-if="!loadingLive&&!livelist.length">
              <img src="@/assets/liu/zw.png" />
              <p>暂无数据</p>
            </div>

            <div class="pageBox" v-if="livelistTotalCount>5&&!loadingLive">
              <el-pagination
                background
                layout="prev, pager, next, jumper"
                :total="livelistTotalCount"
                :page-size="size2"
                :current-page="page2"
                @current-change="changePage2"
                :hide-on-single-page="true"
              ></el-pagination>
            </div>
            <!-- :hide-on-single-page="true" -->
          </div>
        </div>
      </el-dialog>
    </template>
  </div>
</template>

<script>
import SourceIcon from '@/component/SourceIcon.vue'; //图标
import top1 from '@/assets/img/top1.png';
import top2 from '@/assets/img/top2.png';
import top3 from '@/assets/img/top3.png';
export default {
  props: [],
  data() {
    return {
      categoryList: [],
      loadingLive: false,
      livelistTotalCount: 0,
      livelist: [],
      idLive: '',
      shopPopList: [],
      shopPopCount: '',
      loading: false,
      loading1: false,
      totalCount: 0,
      infoData: [],
      CategroyID: null, //分类ID
      NumberOfFans: null, //粉丝数量(1 小于1万,2 1万-10万,3 10万-50万,4 50万-100万,5 100万-500万,6 500万-1000万,7 大于1000万)
      PublicPraise: null, //口碑分(1 高,2 中,3 低)
      startDate: '',
      endDate: '',
      page: 1,
      size: 9,
      count: 1000,
      page1: 1,
      size1: 5,
      page2: 1,
      size2: 5,
      isShopPop: false,
      isLivePop: false,
      orderBy: 'desc',
      sort: '1',
      keyWords: '',
      my_radio01: '全部',
      my_radio02: '全部',
      isActive: '全部',
      isOverstep: false, //是否超出（初始化）
      isUnfold: false, //是否展示
      KindName: '30天',
      liveTime: [],
      id: '',
      // 选择时间 不可选的日期.
      pickeroptions: {
        disabledDate: time => {
          return (
            time.getTime() < Date.now() - 180 * 24 * 60 * 60 * 1000 ||
            time.getTime() > Date.now() - 24 * 60 * 60 * 1000
          ); // 返回 所有时间 大于 当前时间
        }
      },
      vipRootObj: this.$store.state.userRoot, //会员权限对象
      imgList: [{ src: top1 }, { src: top2 }, { src: top3 }],
      saleLoading: false,
      totalSalesList: [], //总销售达人Top3数组
      liveSalesList: [] //直播销售达人Top3数组
    };
  },
  components: { SourceIcon },
  computed: {},
  created() {},
  mounted() {
    if (this.vipRootObj[159][166].owner) {
      this.setCondition();
      this.infodataauthoranalysis();
      this.saleTalentAPI();
    }
  },
  watch: {
    // 搜索
    keyWords: function (newVal, oldVal) {
      if (newVal == '') {
        // this.table_data01 = [];
        this.infodataauthoranalysis();
      }
    },
    // 时间选择器
    KindName: function (newVal, oldVal) {
      this.infoData = [];
      if (this.KindName != '') {
        this.KindName = newVal;
        this.totalSalesList = [];
        this.liveSalesList = [];
        this.infodataauthoranalysis();
        this.saleTalentAPI();
      }
    },
    my_radio02() {
      this.page = 1;
      this.infoData = [];
      this.infodataauthoranalysis();
    },
    my_radio01(newValue) {
      this.page = 1;
      this.infoData = [];
      this.infodataauthoranalysis();
    }
  },
  methods: {
    // 销售达人接口
    saleTalentAPI() {
      this.saleLoading = true;
      this.$axios
        .post('/api/shop/GetShopData2AuthorTop', {
          ShopID: this.$route.params.id,
          BeginTime: this.startDate,
          EndTime: this.endDate
        })
        .then(responce => {
          if (responce.data.code === 0) {
            this.totalSalesList = responce.data.data.totalSales;
            this.liveSalesList = responce.data.data.liveSales;
          }
          this.saleLoading = false;
        });
    },
    go_to_au(id) {
      let router = this.$router.resolve({
        path: `/talent_main/tdetails/${id}/${0}`
      });
      window.open(router.href, '_blank');
    },
    go_to_page01(id) {
      let router = this.$router.resolve({
        path: `/talent_main/liveDetailsRoot/${id}/0`
      });
      window.open(router.href, '_blank');
    },
    livepop(id) {
      this.livelist = [];
      this.livelistTotalCount = 0;
      this.page2 = 1;
      this.idLive = id;
      this.isLivePop = true;
      this.infodataauthorlivelist();
    },
    // 小店详情-达人分析-关联直播列表(黄旭东)
    infodataauthorlivelist() {
      this.loadingLive = true;
      this.getTime();
      this.$axios
        .post('/api/shop/infodataauthorlivelist', {
          ShopID: this.$route.params.id,
          AuthorId: this.idLive,
          BeginTime: this.startDate,
          EndTime: this.endDate,
          PageIndex: this.page2, //分页索引
          PageSize: this.size2 //分页大小
        })
        .then(res => {
          this.loadingLive = false;
          if (res.data.code == 0) {
            this.livelist = res.data.data.list;
            this.livelistTotalCount = res.data.data.pageInfo.totalCount;
          }
        });
    },
    toGoodsDetails(id, tabNo) {
      let router = this.$router.resolve({
        path: `/talent_main/shop_main/${id}/${tabNo}`
      });
      window.open(router.href, '_blank');
    },
    shopPop(id) {
      this.page1 = 1;
      this.shopPopList = [];
      this.shopPopCount = 0;
      this.isShopPop = true;
      this.id = id;
      this.infodataauthorprolist();
    },
    infodataauthorprolist() {
      this.loading1 = true;
      this.getTime();
      this.$axios
        .post('/api/shop/infodataauthorprolist', {
          ShopID: this.$route.params.id,
          AuthorId: this.id,
          BeginTime: this.startDate,
          EndTime: this.endDate,
          PageIndex: this.page1, //分页索引
          PageSize: this.size1 //分页大小
        })
        .then(res => {
          this.loading1 = false;
          if (res.data.code == 0) {
            this.shopPopList = res.data.data.list;
            this.shopPopCount = res.data.data.pageInfo.totalCount;
          }
        });
    },
    infodataauthoranalysis() {
      let publicPraise;
      switch (this.my_radio01) {
        case '全部':
          publicPraise = null;
          break;
        case '高':
          publicPraise = 1;
          break;
        case '中':
          publicPraise = 2;
          break;
        case '低':
          publicPraise = 3;
          break;
        case '无':
          publicPraise = 0;
          break;
        default:
          break;
      }
      let category;
      this.categoryList.map((item, index) => {
        if (item.name == this.isActive) {
          category = item.value;
        }
      });

      let favorite;
      switch (this.my_radio02) {
        case '全部':
          favorite = null;
          break;
        case '<1w':
          favorite = 1;
          break;
        case '1w-10w':
          favorite = 2;
          break;
        case '10w-50w':
          favorite = 3;
          break;
        case '50w-100w':
          favorite = 4;
          break;
        case '100w-500w':
          favorite = 5;
          break;
        case '500w-1000w':
          favorite = 6;
          break;
        case '>1000w':
          favorite = 7;
          break;
      }
      this.getTime();
      this.loading = true;
      this.$axios
        .post('/api/shop/infodataauthoranalysis', {
          ShopID: this.$route.params.id, //店铺ID
          BeginTime: this.startDate, //开始时间
          EndTime: this.endDate, //结束时间
          NickName: this.keyWords, //昵称
          CategroyID: category, //分类ID
          NumberOfFans: favorite, //粉丝数量(1 小于1万,2 1万-10万,3 10万-50万,4 50万-100万,5 100万-500万,6 500万-1000万,7 大于1000万)
          PublicPraise: publicPraise, //口碑分(1 高,2 中,3 低)
          PageIndex: this.page, //分页索引
          PageSize: this.size //分页大小
        })
        .then(res => {
          this.loading = false;
          this.totalCount = 0;
          if (res.data.code == 0) {
            this.infoData = res.data.data.list;
            this.categoryList = res.data.data.categoryList;
            this.categoryList.unshift({ name: '全部', value: 0 });
            this.totalCount = res.data.data.pageInfo.totalCount;
          }
        });
    },

    // 热门直播间分页
    changePage(n) {
      this.page = n;
      this.infoData = [];
      this.infodataauthoranalysis();
    },
    // 商品数分页
    changePage1(n) {
      this.shopPopList = [];
      this.page1 = n;
      this.infodataauthorprolist();
    },
    // 直播间分页
    changePage2(n) {
      this.page2 = n;

      this.livelist = [];
      this.infodataauthorlivelist();
    },

    // 排序
    sort_fun(parm01, parm02) {
      if (parm01) {
        this.orderBy = 'desc';
      } else {
        this.orderBy = 'asc';
      }
      this.sort = parm02;
      // this.data_01 = [];
      // this.page = 1;
      this.getTime();
    },
    //搜索
    toSearch() {
      this.infoData = [];
      this.page = 1;
      this.infodataauthoranalysis();
    },
    getTime() {
      this.listLoading = true;
      switch (this.KindName) {
        case '近7天':
          this.endDate = this.timestamp(Date.now() / 1000 - 24 * 60 * 60, 'Y-M-D');
          this.startDate = this.timestamp(Date.now() / 1000 - 86400 * 7, 'Y-M-D');
          break;

        case '30天':
          this.endDate = this.timestamp(Date.now() / 1000 - 24 * 60 * 60, 'Y-M-D');
          this.startDate = this.timestamp(Date.now() / 1000 - 86400 * 30, 'Y-M-D');
          break;
        case '90天':
          this.endDate = this.timestamp(Date.now() / 1000 - 24 * 60 * 60, 'Y-M-D');
          this.startDate = this.timestamp(Date.now() / 1000 - 86400 * 90, 'Y-M-D');
          break;
        default:
          this.startDate = this.liveTime[0];
          this.endDate = this.liveTime[1];
          break;
      }
      this.liveTime = [this.startDate, this.endDate];
    },
    getCondition(itemObj) {
      //点击达人行业选项
      this.isActive = itemObj.name;

      this.infoData = [];
      this.page = 1;
      this.infodataauthoranalysis();
      // this.talentData.forEach((item) => {
      //   if (itemObj.id == item.id) {
      //     item.isActive = true;
      //   } else {
      //     item.isActive = false;
      //   }
      // });
      // this.$forceUpdate();  vue组件重新渲染
    },
    // 转开收起
    unfoldFn() {
      this.isUnfold = !this.isUnfold;
    },
    setCondition() {
      this.$nextTick(() => {
        let box = this.$refs.ovBox;
        if (!box) return;
        let childBox = this.$refs.ovChild;
        let boxHeight = box.offsetHeight;
        let childBoxHeight = childBox.offsetHeight;
        if (boxHeight < childBoxHeight) {
          this.isOverstep = true;
        }
      });
    },
    onPick1() {
      this.KindName = '';
      this.infoData = [];
      this.page = 1;
      this.totalSalesList = [];
      this.liveSalesList = [];
      this.infodataauthoranalysis();
      this.saleTalentAPI();
      // this.vidio = [];
      // this.page = 1;
      // this.list = [];
      // this.showroomList = [];
      // this.getTime();
    }
  }
};
</script>

<style lang="less" scoped>
.TalentAnalysisShop {
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
  box-sizing: border-box;
  *,
  *:before,
  *:after {
    box-sizing: inherit;
  }
  .top {
    margin-bottom: 10px;
    // width: 100%;
    display: flex;
    justify-content: flex-end;
    .optionsBox {
      margin-left: 10px;
    }
  }
  // 销售达人Top
  .talentTopWarp {
    width: 100%;
    height: 306px;
    margin-bottom: 20px;
    position: relative;
    .talentTop {
      width: 80%;
      display: flex;
      margin-top: 23px;
      .talentTopLeft {
        margin-right: 26px;
      }
      .common {
        width: 460px;
        height: 263px;
        border: 1px solid #e5e5e5;
        border-radius: 6px;
        .contentTitle {
          height: 40px;
          text-align: center;
          line-height: 40px;
          font-weight: 600;
          color: #555555;
          background-color: #f5f5f5;
        }
        .topList {
          margin-top: 19px;
          margin-left: 21px;
          .list {
            position: relative;
            width: 100%;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
            color: #222;
            .image {
              width: 50px;
              height: 51px;
              border-radius: 50%;
              background: #eee;
              margin: 0 9px 0 14px;
            }
            .text {
              font-size: 14px;
              display: inline-block;
              width: 142px;
              overflow: hidden;
              white-space: nowrap;
              text-overflow: ellipsis;
            }
            .acount {
              position: absolute;
              right: 40px;
              font-size: 15px;
              font-weight: 600;
            }
          }
        }
      }
    }
  }
  .dl {
    display: flex;
    font-size: 14px;
    margin-bottom: 6px;
    margin-top: 20px;
    &:last-child {
      margin-bottom: 0;
    }
    dt {
      padding-top: 6px;
      width: 78px;
      flex-shrink: 0;
      color: #888;
    }
    dd {
      position: relative;
      color: #555;
      height: 32px;
      overflow: hidden;
      .cg_items {
        display: inline-block;
        font-size: 0;
        span {
          display: inline-block;
          height: 32px;
          padding: 0 16px;
          // margin-bottom: 5px;
          line-height: 32px;
          font-size: 14px;
          cursor: pointer;
          vertical-align: middle;
          &.active {
            color: #fd7f2c;
            background-color: #fff1e8;
            border-radius: 4px;
          }
        }
        span:hover {
          color: #ff924b;
        }
        i {
          position: absolute;
          display: none;
          right: 0;
          top: 6px;
          font-size: 14px;
          font-style: normal;
          color: #fd7f2c;
          cursor: pointer;
        }
      }
      &.overstep {
        padding-right: 22px;
        .cg_items {
          i {
            display: inline-block;
            vertical-align: middle;
          }
        }
      }
      &.is_unfold {
        padding-right: 0;
        height: inherit;
        .cg_items {
          i {
            position: inherit;
          }
        }
      }
    }
  }
  // 搜索框
  .searchBox {
    width: 308px;
    height: 32px;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #e5e5e5;
    margin-top: 8px;
    margin-bottom: 10px;
    .el-input__inner {
      flex: 1;
    }
    .imgBox:hover {
      background: url('../../../assets/wang/talentCompare/search.png') no-repeat 10px 7px, #fff;
      background-size: 15px 15px;
    }
    .imgBox {
      width: 40px;
      height: 32px;
      border-radius: 0px 4px 4px 0px;
      cursor: pointer;
      display: grid;
      place-items: center;
      background: url('../../../assets/wang/talentCompare/search-nohover.png') no-repeat 10px 7px,
        #fff;
      background-size: 15px 15px;
      img {
        width: 15px;
        height: 15px;
      }
    }
  }
  .tab1 {
    width: 100%;
    thead {
      width: 100%;
      tr {
        width: 100%;
        height: 48px;
        background-color: #f5f9ff;
        border-radius: 4px 4px 0px 0px;

        > th {
          cursor: pointer;
          font-size: 14px;
          font-weight: 600;
          color: #555555;
          img {
            width: 5px;
            height: 12px;
          }
          &:nth-child(1) {
            cursor: text;
            width: 23%;
            text-align: left;
            padding-left: 46px;
          }
          &:last-child {
            padding-right: 30px;
          }
        }
      }
    }
    tbody {
      width: 100%;
      tr {
        width: 100%;
        height: 78px;
        border-bottom: 1px solid #efefef;
        td {
          height: 78px;
          text-align: center;
          font-family: DINAlternate-Bold;
          font-size: 15px;
          color: #222222;
          &:nth-child(1) {
            padding-left: 36px;
            text-align: left;
          }
          &:nth-child(5),
          &:nth-child(7) {
            img {
              width: 15px;
              height: 16px;
              vertical-align: top;
              cursor: pointer;
            }
          }
          &:last-child {
            padding-right: 30px;
          }
          &:nth-child(1) {
            display: flex;
            > div {
              align-self: center;
              &:nth-child(1) {
                width: 50px;
                height: 50px;
                flex: 0 0 50px;
                margin-right: 10px;
                border-radius: 50%;
                overflow: hidden;
                > img {
                  width: 100%;
                  height: 100%;
                  cursor: pointer;
                }
              }
              &:nth-child(2) {
                flex: 0 0 calc(100% - 100px);
                // width: calc(100% - 50px);
                font-size: 14px;
                font-weight: 600;
                color: #222222;
                position: relative;
                display: -webkit-box;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 1;
                overflow: hidden;
                #SourceIcon {
                  position: absolute;
                  left: 0;
                }
                p {
                  // text-indent: 18px;
                  cursor: pointer;
                  &:hover {
                    color: #ff924b;
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
.tab_box {
  position: relative;
  min-height: 370px;
}
.popup_wrap {
  height: 578px;
  box-sizing: border-box;
  padding: 20px;
  .tit_box {
    cursor: pointer;
    min-height: 15px;
  }
  .title {
    font-size: 14px;
    color: #888888;
  }

  .tab2 {
    margin-top: 10px;
    width: 750px;
    flex: 0 0 750px;
    thead {
      width: 750px;
      tr {
        width: 750px;
        height: 48px;
        background-color: #f4f9ff;
        border-radius: 4px 4px 0px 0px;
        font-size: 14px;
        font-weight: 600;
        color: #555555;
        th {
          &:nth-child(1) {
            width: 25%;
            text-align: left;
            padding-left: 21px;
          }
          &:nth-child(4) {
            > div {
              width: 14px;
              height: 14px;
              display: inline-block;
            }
          }
        }
      }
    }
    tbody {
      width: 750px;
      tr {
        width: 750px;
        height: 78px;
        border-bottom: 1px solid #efefef;
        td {
          font-family: DINAlternate-Bold;
          text-align: center;
          height: 78px;
          color: #222222;
          &:nth-child(1) {
            display: flex;
            width: 25%;
            flex: 0 0 25%;
            div {
              position: relative;
              &:nth-child(1) {
                img {
                  width: 50px;
                  height: 50px;
                  border-radius: 6px;
                  margin-right: 10px;
                  margin-left: 10px;
                  cursor: pointer;
                }
              }
              align-self: center;
              #SourceIcon {
                position: absolute;
                left: 0;
              }
              p {
                text-align: left;
                text-indent: 18px;
                cursor: pointer;
                width: 203px;
                display: -webkit-box;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 2;
                overflow: hidden;
                font-size: 14px;
                font-weight: 600;
                color: #222222;
                &:hover {
                  color: #ff924b;
                }
              }
            }
          }
        }
      }
    }
  }
  .tab3 {
    width: 100%;
    thead {
      width: 750px;
      tr {
        width: 750px;
        height: 48px;
        background-color: #f4f9ff;
        border-radius: 4px 4px 0px 0px;
        th {
          &:nth-child(1) {
            width: 25%;
            text-align: left;
            padding-left: 14px;
          }
        }
      }
    }
    tbody {
      width: 750px;
      tr {
        width: 750px;
        height: 78px;
        border-bottom: 1px solid #efefef;
        td {
          height: 78px;
          text-align: center;
          font-family: DINAlternate-Bold;
          color: #222;
          &:nth-child(1) {
            width: 25%;
            display: flex;
            > div {
              align-self: center;
              position: relative;
              &:nth-child(1) {
                border-radius: 6px;
                margin-right: 10px;
                margin-left: 10px;
                width: 50px;
                flex: 0 0 50px;
                height: 50px;
                overflow: hidden;
                position: relative;
                .livingGifBox {
                  width: 18px;
                  height: 18px;
                  position: absolute;
                  right: 0;
                  bottom: 0;
                  background-image: linear-gradient(90deg, #ff005a 1%, #ff31a5 100%),
                    linear-gradient(#ffffff, #ffffff);
                  background-blend-mode: normal, normal;
                  border-radius: 6px 0px 4px 0px;
                }
                .livingGif {
                  height: 100%;
                  width: 100%;

                  span {
                    bottom: 3px;
                  }
                }
                img {
                  width: 100%;
                  height: 100%;

                  cursor: pointer;
                }
              }
              align-self: center;
              #SourceIcon {
                position: absolute;
                left: 0;
              }
              p {
                text-align: left;
                &:nth-child(1) {
                  cursor: pointer;
                  width: 203px;
                  overflow: hidden;
                  text-overflow: ellipsis;
                  white-space: nowrap;
                  font-size: 14px;
                  font-weight: 600;
                  color: #222222;
                  cursor: pointer;
                  &:hover {
                    color: #ff924b;
                  }
                }
                &:nth-child(2) {
                  font-size: 14px;
                  color: #888888;
                }
              }
            }
          }
        }
      }
    }
  }

  .whatTipBox {
    display: inline-block;
    width: 14px;
    height: 14px;
    // margin-left: 6px;
    border-radius: 50%;
    background-image: url('../../../assets/meng/search_result04.png');
    background-repeat: no-repeat;
    background-size: 100% 100%;
    position: relative;
    top: 2px;
    cursor: pointer;
  }
}
.liveImg {
  width: 15px;
  height: 16px;
  cursor: pointer;
  margin-top: -1px;
}
/deep/.buyDialog {
  height: 90%;
  margin-top: 10px;
}
.title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0px;
  color: #222222;
  position: relative;
  text-indent: 9px;
  &::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 16px;
    background-color: #fd7f2c;
    border-radius: 2px;
  }
}
</style>
